package com.snpic.appaw.module.insure.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.bind.annotation.RestController;

/**
 * 获取配信息config
 */
@Data
@Configuration
public class S3Config {
    @Value("${amazons3.access_key}")
    private String access_key;

    @Value("${amazons3.secret_key}")
    private String secret_key;

    @Value("${amazons3.server_url}")
    private String server_url;

    @Value("${amazons3.bucket_name}")
    private String bucketName;

    @Value("${amazons3.base_path}")
    //    基础路径/static/app
    private String basePath;

    @Value("${amazons3.ossconfig}")
    private String ossconfig;


    @Value("${amazons3.ossdownloadpath}")
    private String ossdownloadpath;

    @Override
    public String toString() {
        return "Config{" +
                "access_key='" + access_key + '\'' +
                ", secret_key='" + secret_key + '\'' +
                ", server_url='" + server_url + '\'' +
                ", bucketName='" + bucketName + '\'' +
                ", ossconfig='" + ossconfig + '\'' +
                '}';
    }
}
